import 'package:fish_redux/fish_redux.dart';
import 'dart:io';
import 'package:flutter/material.dart';
import '../../../app_files.dart';

class PhotoUploadViewState implements Cloneable<PhotoUploadViewState> {
  File selectImage;
  GlobalKey rootWidgetKey = GlobalKey();
  LocationData data;
  var info;
  ///0 安检 1 巡检 2 维修
  int type = 0;

  @override
  PhotoUploadViewState clone() {
    return PhotoUploadViewState()
      ..data = data
      ..rootWidgetKey = rootWidgetKey
      ..selectImage = selectImage
      ..info = info
      ..type = type;
  }
}

PhotoUploadViewState initState(Map<String, dynamic> args) {
  return PhotoUploadViewState()
    ..selectImage = args['image']
    ..type = args['type']
    ..info = args['info'];
}
